package hn.cch.common.message.request;

import hn.cch.common.annotation.CheckField;
import hn.cch.common.message.BaseRequest;
import com.fasterxml.jackson.annotation.JsonFormat;
import hn.cch.common.message.request.v1.TestRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Collection;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
public class CommonRequest extends BaseRequest {


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;

    @CheckField
    private String id;

    @CheckField
    private Collection<String> ids;

    private TestRequest request;

}
